From: Cosimo Cecchi Date: Tue, 6 Jun 2017 21:27:00 +0000 (-0700) Subject: st: initialize static variables to NULL X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~308 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d5cac6559d1759ca717f8c0ca9cabbc3d19cd456;p=gnome-shell.git st: initialize static variables to NULL https://bugzilla.gnome.org/show_bug.cgi?id=783484 --- diff --git a/src/st/st-entry.c b/src/st/st-entry.c index 7ccf6bd7b..152f3eb8e 100644 --- a/src/st/st-entry.c +++ b/src/st/st-entry.c @@ -718,8 +718,8 @@ st_entry_key_focus_in (ClutterActor *actor) clutter_actor_grab_key_focus (priv->entry); } -static StEntryCursorFunc cursor_func; -static gpointer cursor_func_data; +static StEntryCursorFunc cursor_func = NULL; +static gpointer cursor_func_data = NULL; /** * st_entry_set_cursor_func: (skip) diff --git a/src/st/st-im-text.c b/src/st/st-im-text.c index 5f86f88b9..6498cfb5d 100644 --- a/src/st/st-im-text.c +++ b/src/st/st-im-text.c @@ -202,7 +202,7 @@ st_im_text_get_paint_volume (ClutterActor *self, return clutter_paint_volume_set_from_allocation (volume, self); } -static GdkWindow *event_window; +static GdkWindow *event_window = NULL; void st_im_text_set_event_window (GdkWindow *window)